import 'dart:isolate';
import 'package:test/test.dart';

void main() {
  group('Isolate messaging (host-only)', () {
    test('send/receive string', () async {
      final port = ReceivePort();
      await Isolate.spawn((SendPort p){ p.send('ok'); }, port.sendPort);
      final msg = await port.first;
      expect(msg, 'ok');
    });
  });
}
